package com.shop.domain;

import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * Contract
 * 合同实体类
 * Created by heqianqian on 2017/7/11.
 */
@Data
@NoArgsConstructor
public class Contract {
    private Long contractId;
    private String offeror;//收购方
    private String contractNo;//合同编号
    private Date signingDate;//签单日期
    private String inputBy;//制单人
    private String checkBy;//审单人
    private String inspector;//验货员
    private Double totalAmount;//总金额
    private Integer importNum;//重要程度
    private String crequest;//要求
    private String customName;
    private Date deliveryPeriod;//交货期限
    private Date shipTime;//船期
    private String tradeTerms;//贸易条款
    private String remark;//说明
    private String printStyle;//打印版式
    private Integer oldState;//归档前状态
    private Integer state;//状态
    private Integer outState;//走货状态
    private String createBy;
    private String createDept;
    private Date createTime;
    private String pNum;//货物数
    private String extNum;//附件数

    public Contract(Long contractId, String offeror, String contractNo, Date signingDate, String inputBy, String checkBy, String inspector, Double totalAmount, Integer importNum, String crequest, String customName, Date deliveryPeriod, Date shipTime, String tradeTerms, String remark, String printStyle, Integer oldState, Integer state, Integer outState, String createBy, String creatDept, Date creatTime) {
        this.contractId = contractId;
        this.offeror = offeror;
        this.contractNo = contractNo;
        this.signingDate = signingDate;
        this.inputBy = inputBy;
        this.checkBy = checkBy;
        this.inspector = inspector;
        this.totalAmount = totalAmount;
        this.importNum = importNum;
        this.crequest = crequest;
        this.customName = customName;
        this.deliveryPeriod = deliveryPeriod;
        this.shipTime = shipTime;
        this.tradeTerms = tradeTerms;
        this.remark = remark;
        this.printStyle = printStyle;
        this.oldState = oldState;
        this.state = state;
        this.outState = outState;
        this.createBy = createBy;
        this.createDept = creatDept;
        this.createTime = creatTime;
    }

    public String getpNum() {
        return pNum;
    }

    public void setpNum(String pNum) {
        this.pNum = pNum;
    }
}
